<%@page language="java"
	import="java.sql.*,com.icss.utils.*,javax.naming.*,javax.sql.*,com.icss.beans.*,java.util.*,com.icss.daos.BoardDao"
	pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" >

<HTML>
<HEAD>
<TITLE>新帖</TITLE>

<!-- fckeditor -->
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript">

window.onload = function()
{
	// Automatically calculates the editor base path based on the _samples directory.
	// This is usefull only for these samples. A real application should use something like this:
	// oFCKeditor.BasePath = '/fckeditor/' ;	// '/fckeditor/' is the default value.
	// var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples')) ;
	var sBasePath = "<%=request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
					+ request.getContextPath() + "/BBS/fckeditor/"%>"
//alert(sBasePath);
	var oFCKeditor = new FCKeditor( "cont" ) ;
	oFCKeditor.BasePath	= sBasePath ;
	oFCKeditor.ReplaceTextarea() ;
}

</script>
<!-- end of fckeditor -->


<META content="text/html; charset=UTF-8" http-equiv=Content-Type>

<META name=GENERATOR content="MSHTML 8.00.6001.18702">
<META name=author content="Discuz! Team and Comsenz UI Team">
<META name=copyright content="2001-2009 Comsenz Inc.">
<META name=MSSmartTagsPreventParsing content=True>
<META content=Yes http-equiv=MSThemeCompatible>
<META content=ie=7 http-equiv=x-ua-compatible>
<LINK>
<LINK rel=stylesheet type=text/css
	href="<%=basePath %>BBS/search_files/style_7_common.css">
<LINK rel=stylesheet type=text/css
	href="<%=basePath %>BBS/search_files/scriptstyle_7_search.css">


<SCRIPT type=text/javascript
	src="<%=basePath %>BBS/search_files/common.js"></SCRIPT>
</HEAD>


<BODY id=newArticle>

<%
			int aid = Integer.parseInt(request.getParameter("aid"));
			int bid = 0;

			Object id = session.getAttribute("bid");
			if (id == null) {
		%>
<script>alert('请先登录论坛！！');location.href='javascript:history.go(-1)'</script>

<%
		} else {
		%>


<DIV id=header></DIV>
<DIV id=wrap class=wrap>

<h2></h2>

<FORM class=searchform method=post
	action="<%=basePath%>bbsDealServlet?param=reply&aid=<%=aid%>"><INPUT
	value=ba3a486e type=hidden name=formhash> <LABEL
	class=searchlabel for=srchtxt> 回复 <STRONG>帖子 </STRONG> </LABEL> <br>
作者 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <%=(String) session.getAttribute("userName")%>

<br>

内容 <textarea name="cont" rows="30" cols="150"></textarea> <br>

<br>
<br>
<p><input type="submit" value="提交" /> &nbsp;&nbsp; <input
	type="reset" value="重置" /></p>
</FORM>


<DIV></DIV>
<hr class=shadowline>
<%} %>

</BODY>
</HTML>
